# -*- coding = utf-8 -*-
# Author：凌杰
# Email：577709198@qq.com

from django.urls import converters


class UsernameConverter:
    regex = '[a-zA-Z0-9_-]{5,20}'

    def to_python(self, value):

        return value
